﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HomeSite.Master" Inherits="System.Web.Mvc.ViewPage<TimeTableManagement.Entities.Tb_Education>" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
        GroupBoxCaptionOffsetY="-28px" 
        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
        <ContentPaddings Padding="14px" />
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
   
   <table class="ui-accordion">
        <tr>
            <td>
                <div class="display-label">Code</div>
                <div class="display-field">
                    <%: Html.DisplayFor(model => model.code) %>
                </div>    
            </td>
            <td>
                <div class="display-label">Name</div>
                <div class="display-field">
                    <%: Html.DisplayFor(model => model.name) %>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">Maxcredit</div>
                <div class="display-field">
                    <%: Html.DisplayFor(model => model.maxcredit) %>
                </div>    
            </td>
            <td>
                <div class="display-label">Year</div>
                <div class="display-field">
                    <%: Html.DisplayFor(model => model.countterm)%>
                </div>
    </td>
        </tr>
        <tr>
            <td>
                <div class="display-label">Department</div>
                <div class="display-field">
                    <%: Html.DisplayFor(model => model.Tb_Department.name) %>
                </div>
            </td>
            <td>
                
            </td>
        </tr>
    </table>
    <div class="display-label">Description</div>
    <div class="display-field">
      <%: Html.DisplayFor(model => model.description) %>
    </div> 
    <div class="display-label">List Course</div>
    <div class="display-field">
        <%--<%: Html.DisplayFor(model => model.listcourse) %>--%>
        <table style="width:100%" id="t1" class="example table-autosort
             table-autofilter table-autopage:20 
             table-stripeclass:alternate 
             table-page-number:t1page table-page-count:t1pages 
             table-filtered-rowcount:t1filtercount 
             table-rowcount:t1allcount">
           <thead>
            <tr>
                <th class="table-sortable:alphanumeric">
                    Course
                </th>
                <th class="table-sortable:alphanumeric">
                    Name
                </th>
                <th class="table-sortable:alphanumeric table-filterable">
                    Term
                </th>
            </tr>
            </thead>
            <tbody>
            <%
            TimeTableManagement.Entities.Tb_Education _eduproccess = new TimeTableManagement.Entities.Tb_Education();
            List<TimeTableManagement.Entities.EduList> list = _eduproccess.getCoureforEdu(Model.id);
            foreach (TimeTableManagement.Entities.EduList item in list)
            { %>

                <td><%: item.code %></td>
                <td><%: item.name %></td>
                <td><%: item.term %></td>
            </tr>
             <% } %>
             </tbody>
             <tfoot>
	            <tr>
		            <td class="table-page:previous" style="cursor:pointer; text-align:right"><img src="../../Content/iconprevious.png" /></td>
		            <td style="text-align:center" class="table-page-number:t1page">Page <span id="t1page"></span>&nbsp;of&nbsp;<span id="t1pages"></span></td>
                    <td class="table-page:next" style="cursor:pointer; text-align:left"> <img src="../../Content/iconnext.png" /></td>
	            </tr>
            </tfoot>
            </table>
    </div>
<p>
    <%: Html.ActionLink("Edit", "Edit", new { id=Model.id }) %> |
    <%: Html.ActionLink("Back to List", "Index") %>
</p>
</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .display-label
        {
            font-weight: 700;
        }
    </style>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="leftmenu" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="menuright" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
